import { post } from "@/utils/request"

export const addFriendshipServer = (username:string , reason:string = '') => {
    return post('/friendship/add',{
        username,
        reason
    })
}

export const agreeServer = (id:number) => {
    return post(`/friendship/agree/${id}`)
}

// 接收的好友列表
export const acceptListserver = () => {
    return post(`/friendship/accept`)
}

// 发送的好友列表
export const sendListserver = () => {
    return post(`/friendship/send`)
}
